﻿@model IEnumerable<HRM.DAL.DAO.Salary>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table class="view">
    <tr>
        <th>
            Basic
        </th>
        <th>
            Medical
        </th>
        <th>
            Residence
        </th>
        <th>
            Transport
        </th>
        <th>
            PF
        </th>
        <th>
            Mobile
        </th>
        <th>
            Others
        </th>
        <th>
            Gross
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Basic)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Medical)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Residence)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Transport)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PF)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Mobile)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Others)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Gross)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.SalaryID }) |
            @Html.ActionLink("Details", "Details", new { id=item.SalaryID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.SalaryID })
        </td>
    </tr>
}

</table>
